	<div class="wrapper">
		<!-- Content Wrapper. Contains page content -->
		<div class="content-wrapper" style="margin-left: 0px;padding-top:0px">

			<!-- Main content -->
			<section class="content">
				<div class="row">
					<div class="col-xs-12" style="padding-left:0px;padding-top:0px">
						<div id="shopping-cart">
							<div class="shopping-tit">
								<h2>购物车</h2>
								<div class="back-list" style="margin-top:13px;" ng-click="backToSelectSeat()">
									<a>返回</a>
								</div>
							</div>
							<div class="member clearfix">
								<div class="form-inline">
									<div class="form-group">
										<label>选择会员：</label>
												<span ng-show="allowSelect=='false'" >{{customerShow}}</span>
												<plus-ui-select placeholder="选择会员"
													service-name="CartSaleCommonService" service-method="findCustomer" 
													checked-key = "customerDefault"  
													option-name="customerId"  
													select-key="customerId" select-value="customerName" 
													ng-model="customer" 
													refresh="true"
													change-do="reload(model)"
													ng-show="allowSelect" 
													></plus-ui-select>
											<span class="m-icon1" ng-click="createCustomer()"  ng-show="allowSelect" title="新建会员"></span>
											<span class="m-icon2" ng-click="clearCustomer()" ng-show="allowSelect" title="清空会员"></span>
											<span class="m-icon3" ng-click="historyCustomer()" ng-show="allowSelect" title="历史会员"></span>
									</div>
								</div>
								<button type="button" class="btn btn-primary btn-sm" ng-click="showOrders()">查看购票记录</button>
							</div>
							
							
							<div class="box" ng-repeat="discount in goodsConfirmVO.discountGoodsVos" ng-show="discount.isShow">
								<div class="box-header">
									<h3 class="box-title" >
										<span class="promotion-none"></span>
										{{discount.discountName}}
									</h3>
									<div class="box-tools price">
										<span class="text-red fz12" ng-show="discount.minShowMoney>0">还差{{discount.minShowMoney}}元，才能参加此优惠活动</span>
										<span>
											金额：
											<b class="text-red">{{discount.realMoney}}</b>
											元
										</span>
									</div>
								</div>
								<div class="box-body">
									<table class="table">
										<tbody>
											<tr ng-repeat="goodsBuyVO in discount.goodsBuyVOList"  ng-show="goodsBuyVO.isShow">
												<td><span ng-show="goodsBuyVO.showFlag">{{goodsBuyVO.goodsName}}</span></td>
												<td width="200">{{goodsBuyVO.seatNo==null?"无座":goodsBuyVO.seatNo}}</td>
												<td width="200">
													{{goodsBuyVO.priceName}}档：
													<b class="text-red">{{goodsBuyVO.price}}</b>
													元
												</td>
												<td width="60">
													x
													<b class="text-blue">{{goodsBuyVO.goodsCount}}</b>
												</td>
												<td width="100">
												</td>
												<td width="40" ng-show="sourceType=='1'">
													<span class="sp-delete"  ng-click="del_c_g(goodsBuyVO.goodsId,goodsBuyVO.goodsCount,goodsBuyVO.selectDiscountId)"></span>
												</td>
											</tr>
										</tbody>
									</table>
								</div>
							</div>

							<div class="box" ng-repeat="couponGood in goodsConfirmVO.coupnGoodList">
								<div class="box-header">
									<h3 class="box-title">
										<span class="packages"></span>
										{{couponGood.couponPriceName}}x
										<b class="text-blue">{{couponGood.couponCount}}</b>
										套
									</h3>
									<div class="box-tools price">
										<span>
											金额：
											<b class="text-red">{{couponGood.showMoney}}</b>
											元
										</span>
										<span class="fz12">（优惠{{couponGood.derateShowMoney}}元）</span>
									</div>
								</div>
								<div class="box-body">
									<table class="table" ng-repeat="couponGroup in couponGood.couponGroupList">
										<tbody>
											<tr ng-repeat="goodsBuyVO in couponGroup.goodsBuyVOList">
												<td><span ng-show="$index==0">{{goodsBuyVO.goodsName}}</span></td>
												<td width="200">{{goodsBuyVO.seatNo==null?"无座":goodsBuyVO.seatNo}} </td>
												<td width="200">
													{{goodsBuyVO.priceName}}档：
													<b class="text-red">{{goodsBuyVO.price}}</b>
													元
												</td>
												<td width="60">
													x
													<b class="text-blue">{{goodsBuyVO.goodsCount}}</b>
												</td>
												<td width="100">
													<span ng-show="$index==0">
														{{goodsBuyVO.couponGroupId!=0?"固定":"自由"}}套票 x
														<b class="text-blue">1</b>
													</span>
												</td>
												<td width="40">
													<span ng-show="goodsBuyVO.couponGroupId==0||(goodsBuyVO.couponGroupId!=0&& $index==0)" class="sp-delete" ng-show="sourceType=='1'" ng-click="del_t_g(goodsBuyVO.goodsId,goodsBuyVO.goodsCount,goodsBuyVO.couponGroupId)"></span>
												</td>
											</tr>
										</tbody>
									</table>
								</div>
							</div>
							
		
							<!-- 扩展下单参数选项开始 -->
							<div id="charge">
								<span class="btn-sh btn-sh-2" data-toggle="collapse" aria-expanded="false" data-target="#tk-seting" aria-control="tk-seting"></span>
								<form>
									<div class="form-inline">
										<div class="form-group">
											<label>出票类型：</label>
											<plus-ui-select placeholder="出票类型"
												service-name="CartSaleCommonService" choice-height="60px" service-method="getTicketType"  checked-index="0"
												select-key="orderBillTypeId" select-value="orderBillTypeName" ng-model="ticketTypeModel" width="200px"></plus-ui-select>
										</div>
									</div>

									<div id="tk-seting" class="collapse">
										<div class="form-inline">
										<div class="form-group">
											<label>选择票面：</label>
											<plus-ui-select placeholder="选择票面"
												service-name="CartSaleCommonService" 
												service-method="getEventTicketFaceListByEventId" 
												checked-index="0"  
												option-name="watchTicketFace"
												select-key="ticketFaceId" 
												select-value="ticketFaceName" 
												ng-model="ticketFaceModel" 
												width="200px" 
												change-do="selectAttr(model)" 
												refresh="true"></plus-ui-select>
										</div>
										<div class="form-group">
											<input type="text" class="form-control" placeholder="订单自由量1" ng-Model="orderAttr1" ng-show="attr1" >
										</div>
										<div class="form-group">
											<input type="text" class="form-control" placeholder="订单自由量2" ng-Model="orderAttr2" ng-show="attr2" >
										</div>
										<div class="form-group">
											<input type="text" class="form-control" placeholder="订单自由量3" ng-Model="orderAttr3" ng-show="attr3" >
										</div>
									</div>
									<div class="form-inline order-info">
										<div class="form-group" style="width: auto;">
											<label>订单优惠：</label>
											<plus-ui-select placeholder="订单优惠"
												service-name="CartSaleCommonService" 
												service-method="findOrderEventDiscount" 
												checked-index="0"
												option-name="watchOrderEvent"  
												select-key="eventDiscountId" 
												select-value="discountName" 
												ng-model="orderDiscountModel" 
												width="200px" 
												refresh="true"
												change-do="changeEventDiscount(model)" 
												></plus-ui-select>
											<p class="discount" ng-if="orderDiscountModel.discountRule!=1203">（优惠<span class="text-red">{{orderDiscountSelectVO.derateMoney}}</span>元）</p>
											<p class="discount" ng-if="orderDiscountModel.discountRule==1203">（赠送<span class="text-red">{{orderDiscountSelectVO.givePoint}}</span> <span ng-show="orderDiscountModel.presentationType==2001">积分</span><span ng-show="orderDiscountModel.presentationType==2000">成长值</span>）</p>
										</div>
										<div class="form-group" style="width: auto;">
											<input type="text" class="form-control" placeholder="减免金额" ng-model="orderDiscountMoney" ng-show="orderDiscountModel.discountRule==1201&&orderDiscountModel.discountRuleDefineValue!=''">
										</div>
										<div class="form-group" style="width: auto;">
											<label>订单备注：</label>
											<textarea rows="3" class="form-control" ng-model="remark"></textarea>
										</div>
									</div>
									</div>
									<div class="total clearfix">
										<div class="pull-left">
											<span class="mr10">商品总数：<b class="text-red">{{goodsConfirmVO.goodsCount}}</b></span>
										</div>
										<div class="pull-right">
											<span class="mr10">订单总金额：<b class="text-red">{{goodsConfirmVO.buyPrice}}</b> 元</span>
											<span class="fz12 mr20">
												（共优惠 <b class="text-red fz12">{{goodsConfirmVO.derateMoney}}</b>元）
											</span>
											<button type="button" class="btn btn-primary btn-sm" ng-disabled="goodsConfirmVO.goodsCount==0" data-toggle='modal'  ng-click="place()">立即下单</button>
										</div>
									</div>
								</form>
							</div>
							<!-- 扩展下单参数选项结束 -->
						</div>
					</div>
				</div>
			</section>
			<!-- /.content -->
		</div>
		<!-- /.content-wrapper -->

		<!-- /.control-sidebar -->
		<div class="control-sidebar-bg"></div>
	</div>
	<!-- ./wrapper -->

	<div class="hp-tool"></div>
	<div id="bk-t"></div>



<!-- 新建会员开始-->
<div class="modal"  data-backdrop="false"  id="AddCustomerModal" >
    <div class="modal-dialog modal-confirm">
    	<mplus-customer></mplus-customer>
    </div>
</div>
<!-- 新建会员结束-->

<!-- 查询购票记录开始-->
<div class="modal"  data-backdrop="false"  id="CustomerOrdersModal" ng-controller="CustomerOrdersController">
    <div class="modal-dialog modal-confirm" style="width: 700px">
        <div class="modal-content" >
            <div class="modal-header">
           		<button type="button" class="close" data-dismiss="modal" aria-label="Close">
						<span aria-hidden="true">×</span>
				</button>
                <h4 class="modal-title" >购票记录</h4>
            </div>
            <div class="modal-body">
                <plus-data-grid service-name="OrderCommonRestService" service-method="getCustomerOrderHistory" 
                	search-tip-none="暂无购票记录"  
                	search-on-load="false">
                	
                	  <grid-search-bar bar-visible="false">
                          <grid-condition-hide
                               condition-name="customerId"
                               condition-value="{{customerId}}"
                               broadcast = "true"
                            ></grid-condition-hide>
                    </grid-search-bar>
                	
			        <div class="col-md-12">
			            <plus-panel>
			                <grid-simple-table columnDef="columnDefs"></grid-simple-table>
			            </plus-panel>
			        </div>
			    </plus-data-grid>
            </div>
        </div>
    </div>
</div>
<!-- 查询购票记录结束 -->

<!-- 支付确认页面开始 -->
	<div class="modal modal-confirm" id="pay-box" ng-controller="PayTypeController" data-backdrop="false">
		<div class="modal-dialog">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal" aria-label="Close" ng-click="close()">
						<span aria-hidden="true">×</span>
					</button>
					<h4 class="modal-title">确认收款</h4>
				</div>
				<div class="modal-body" style="max-height:550px;overflow:auto">
					<div class="pb-hd">
						未收款金额：
						<span class="text-red">{{order.showMoney}}</span>
						元
						<font style="color:red;float:right" ng-hide="!payMoneyError">{{payMoneyError}}</font>
					</div>
					<div class="pb10 form-inline">
                        
                    </div>
					<div class="bg-w clearfix input-box">
						<div class="form-inline">
							<div class="form-group" ng-repeat = "payType in payTypeVOList">
								<label style="text-align: center;">{{payType.payTypeName}}：</label>
								<input type="text" class="form-control" ng-model="payType.exp1" ng-blur="selectCommonPayType(this)">
							</div>
						</div>
					</div>

					<div class="form-horizontal bg-w">
						<div class="form-group">
							<label class="control-label col-md-2">余额支付：</label>
							<div class="col-md-3">
								<input type="text" 
								   	   class="form-control" 
								   	   ng-model="banlanceForm.banlanceMoney" 
								   	   ng-blur = "selectBanlance()" 
								   	   ng-disabled = "banlanceForm.banlanceFlag||banlanceForm.useBanlance==0"
								   	   ></div>
							<div class="lh-ad">
								<span ng-show="!banlanceForm.banlanceFlag">
									（余额
									<b class="text-red">{{banlanceForm.useBanlance}}</b>
									元）
								</span>
								<span class='text-red'>{{banlanceForm.banlanceMsg}}</span>
							</div>
						</div>
						<div class="form-group" ng-show="banlanceForm.showPayPwd">
							<label class="control-label col-md-2">支付密码：</label>
							<div class="col-md-3">
								<input type="password" class="form-control" ng-model="banlanceForm.banlancePwd" ng-disabled = "banlanceForm.banlanceFlag||banlanceForm.useBanlance==0"></div>
						</div>
					</div>

					<div class="form-horizontal bg-w">
						<div class="form-group">
							<label class="control-label col-md-2">积分抵扣：</label>
							<div class="col-md-3">
								<input type="text" 
								class="form-control" 
								ng-model="pointForm.usePoint" 
								ng-blur="selectPoint()"
								ng-disabled = "pointForm.pointFlag||pointForm.availablePoint==0"
								>
							</div>
							<div class="lh-ad">
								<span ng-show="!pointForm.pointFlag">（剩余<b class='text-red'>{{pointForm.point}}</b>积分，可用<b class='text-red'>{{pointForm.availablePoint}}</b>积分）
									<b >【使用规则：积分只能按{{PointRuleVO.point}}的整数倍进行使用】</b>
								</span>
							</div>
						</div>
						<div class="form-group">
							<label class="control-label col-md-2">抵扣：</label>
							<div class="col-md-3">
								<input type="text" class="form-control" ng-model="pointForm.deductibleMoney" readOnly="true"></div>
							<div class="lh-ad">
								<span class='text-red'>{{pointForm.pointMsg}}</span>
							</div>
						</div>
					</div>
					
					<div class="form-horizontal bg-w" ng-hide="true">
						<div class="form-group">
							<label class="control-label col-md-2">麦座礼品卡：</label>
							<div class="col-md-3">
								<input type="text" 
								class="form-control" 
								ng-model="cardForm.giftCardNo"
								style="width:350px;
								>
							</div>
							<div class="col-md-3">
							<button type="button" class="btn btn-primary btn-sm " ng-click="reloadCard()" />读取</button></div>
						</div>
						<div class="form-group" ng-show="cardForm.showCardPwd">
							<label class="control-label col-md-2">余额支付：</label>
							<div class="col-md-3">
								<input type="text" class="form-control" ng-model="cardForm.useCardMoney" ng-blur="selectCard()" ng-keyup="moneyInput(cardForm,'useCardMoney')">
								<span ng-show="!banlanceForm.banlanceFlag">
									（余额
									<b class="text-red">{{cardForm.leftCardMoney}}</b>
									元）
								</span>
								</div>
								
							<label class="control-label col-md-2">支付密码：</label>
							<div class="col-md-3">
								<input type="password" class="form-control" ng-model="cardForm.cardPwd" ></div>
							<div class="lh-ad">
								<span class='text-red'>{{cardForm.cardMsg}}</span>
							</div>
						</div>
					</div>
				</div>
				<div class="modal-footer">
					<button type="button" 
							class="btn btn-primary btn-sm " 
							ng-class="{true: '', false: 'disabled'}[userForm.payFlag]" ng-click="pay()">确认支付并打票</button>
					<div class="form-group">
						<div class="checkbox">
							<label><input type="checkbox" ng-model="userForm.debt" ng-disabled = "order.showMoney<=0" >欠款打票</label>
						</div>
					</div>
				</div>
			</div>
			<!-- /.modal-content -->
		</div>
		<!-- /.modal-dialog -->
	</div>
<!-- 支付确认页面结束 -->



<!-- 打印确认页面开始 -->
	<div class="modal modal-confirm" id="print-box" ng-controller="PrintController" data-backdrop="false">
		<div class="modal-dialog">
			<div class="modal-content">
				<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-label="Close" ng-click="printClose()">
                        <span aria-hidden="true" >×</span>
                    </button>
					<h4 class="modal-title">打印出票</h4>
				</div>
				<div class="modal-body">
					<div style="margin-left: 40px;margin-bottom: 10px">
						票张数{{order.orderItemsCount}}
					</div>
					<div style="margin-left: 40px;margin-bottom: 10px">
						打印操作，一旦执行不可取消
					</div>
					<div style="margin-left: 40px;margin-bottom: 10px">
						<label><input type="checkbox" ng-model="printVoucher" >同时打印凭证</label>
					</div>
				</div>
				
				<div class="modal-footer">
					<button type="button" class="btn btn-primary btn-sm " ng-click="print()">确认打印</button>
				</div>
			</div>
			<!-- /.modal-content -->
		</div>
		<!-- /.modal-dialog -->
		<!-- 支付打印凭证 -->
		<plus-good-print-templet
				print-element-id="printdiv"
				good-print-id="goodPayPrint"
				good-print-title="售票凭证"
				after-load-data="printClose()"
				good-print-type="1"/>
	</div>
<!-- 打印确认页面结束 -->


